package com.bp.sms;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class NetUtil {
    public NetUtil() {
    }


    public static void sendByte(byte[] s, OutputStream out) throws IOException {
        out.write(s);
        out.flush();
    }

    public static byte[] readByte(InputStream in, int byteCount)
            throws IOException {
        byte[] re = new byte[byteCount];
        in.read(re);
        return re;
    }

}
